/*
 * @Author: jackning 270580156@qq.com
 * @Date: 2024-02-22 10:41:09
 * @LastEditors: jackning 270580156@qq.com
 * @LastEditTime: 2024-08-19 11:46:15
 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
 *   Please be aware of the BSL license restrictions before installing Bytedesk IM – 
 *  selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. 
 *  仅支持企业内部员工自用，严禁私自用于销售、二次销售或者部署SaaS方式销售 
 *  Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE 
 *  contact: 270580156@qq.com 
 *  联系：270580156@qq.com
 * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. 
 */
package com.bytedesk.core.rbac.role;

// import org.springframework.data.rest.core.annotation.HandleAfterCreate;
// import org.springframework.data.rest.core.annotation.HandleAfterDelete;
// import org.springframework.data.rest.core.annotation.HandleAfterLinkSave;
// import org.springframework.data.rest.core.annotation.HandleAfterSave;
// import org.springframework.data.rest.core.annotation.HandleBeforeCreate;
// import org.springframework.data.rest.core.annotation.HandleBeforeDelete;
// import org.springframework.data.rest.core.annotation.HandleBeforeLinkSave;
// import org.springframework.data.rest.core.annotation.HandleBeforeSave;
// import org.springframework.data.rest.core.annotation.RepositoryEventHandler;
// import org.springframework.stereotype.Component;

// import lombok.AllArgsConstructor;
// import lombok.extern.slf4j.Slf4j;

// @Slf4j
// @Component
// @AllArgsConstructor
// @RepositoryEventHandler(Role.class)
// public class RoleRestEventHandler {

//     // private AuthService authService;

//     // private UserService userService;

//     @HandleBeforeCreate
//     public void beforeCreate(Role role) {
//         log.debug("beforeCreate");
//         // User user = authService.getCurrentUser();
//         // role.setOid(Utils.getUid());
//         // role.setUser(user);
//     }

//     @HandleAfterCreate
//     public void afterCreate(Role role) {
//         log.debug("afterCreate");

//     }

//     @HandleBeforeSave
//     public void beforeSave(Role role) {
//         log.debug("beforeSave");

//     }

//     @HandleAfterSave
//     public void afterSave(Role role) {
//         log.debug("afterSave");

//     }

//     @HandleBeforeLinkSave
//     public void beforeLinkSave(Role role) {
//         log.debug("beforeLinkSave");

//     }

//     @HandleAfterLinkSave
//     public void afterLinkSave(Role role) {
//         log.debug("afterLinkSave");

//     }

//     @HandleBeforeDelete
//     public void beforeDelete(Role role) {
//         log.debug("beforeDelete");

//     }

//     @HandleAfterDelete
//     public void afterDelete(Role role) {
//         log.debug("afterDelete");

//     }

// }
